import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'
import Index from '../views/Index.vue'
import Register from '../views/Register.vue'
import Footer from '../components/Footer.vue'
import Appointment from '../views/Appointment.vue'
import Hospital from '../views/Hospital.vue'
import Setmeal from '../views/Setmeal.vue'
import Profile from '../views/Profile.vue'
import SelectDate from '../views/SelectDate.vue'
import Confirmorder from '../views/Confirmorder.vue'
import Appointmentsuccess from '../views/Appointmentsuccess.vue'
import Persional from '../views/Persional.vue'
import Appointmentlist from '../views/Appointmentlist.vue'
import Reportlist from '../views/Reportlist.vue'
import Report from '../views/Report.vue'
import LoginD from '../views/LoginD.vue'
import OrdersContent from '../views/OrdersContent.vue'
import Alter from '../views/Alter.vue'
import Search from '../views/Search.vue'
import Aichat from '../views/Aichat.vue'
import Doctor from '../views/Doctor.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/search',
      name: 'search',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Search.vue')
    },
    {
      path: '/doc',
      name: 'doc',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Doctor.vue')
    },
    {
      path: '/aichat',
      name: 'aichat',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Aichat.vue')
    },
    {
      path: '/alter',
      name: 'alter',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Alter.vue')
    },
    {
      path: '/register',
      name: 'register',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Register.vue')
    },
    {
      path: '/index',
      name: 'index',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Index.vue')
    },
    {
      path: '/appointment',
      name: 'appointment',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Appointment.vue')
    },
    {
      path: '/hospital',
      name: 'hospital',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Hospital.vue')
    },
    {
      path: '/setmeal',
      name: 'setmeal',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Setmeal.vue')
    },
    {
      path: '/profile',
      name: 'profile',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Profile.vue')
    },
    {
      path: '/selectdate',
      name: 'selectdate',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/SelectDate.vue')
    },
    {
      path: '/confirmorder',
      name: 'confirmorder',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Confirmorder.vue')
    },
    {
      path: '/appointmentsuccess',
      name: 'appointmentsuccess',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Appointmentsuccess.vue')
    },
    {
      path: '/persional',
      name: 'persional',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Persional.vue')
    },
    {
      path: '/appointmentlist',
      name: 'appointmentlist',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Appointmentlist.vue')
    },
    {
      path: '/reportlist',
      name: 'reportlist',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Reportlist.vue')
    },
    {
      path: '/report/:orderId',
      name: 'report',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Report.vue')
    },
    {
      path: '/logind',
      name: 'logind',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/LoginD.vue')
    },
    {
      path: '/ordersContent',
      name: 'ordersContent',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/OrdersContent.vue')
    }
  ]
})

export default router
